function Input(tipo,valor){
	Controller.apply(this,['<div class="form-group col-xs-4">'+
			  '<label class="col-xs-12 control-label" for="inputIcon_'+this.uid+'">Exemplo</label>'+
			  '<div class="col-xs-12 input-group">'+
			  	'<span class="input-group-addon addon1"></span>'+
			  	'<input class="inputtt form-control" id="inputIcon_'+this.uid+'" type="'+tipo+'" value="'+valor+'">'+			
			  '</div>'+
			  '</div>']); 
}

Input.prototype = Object.create(Controller.prototype);
Input.prototype.constructor = Input;

Input.prototype.setIcon=function(psrc){
	this.htmlX.find(".addon1 .icon1").remove();
	this.htmlX.find(".addon1").html("");
	this.htmlX.find(".addon1").append('<span class="icon1 glyphicon iconeinput glyphicon-'+psrc+'"></span>');
};
Input.prototype.setAddonText=function(ptxt){
	this.htmlX.find(".addon1 .icon1").remove();
	this.htmlX.find(".addon1").text(ptxt);
};

function InputDouble(tipo,valor){
	Controller.apply(this,['<div class="form-group col-xs-4">'+
		  '<label class="col-xs-12 control-label" for="inputIcon_'+this.uid+'">Exemplo</label>'+
		  '<div class="col-xs-12 input-group">'+
		  '<span class="input-group-addon addon1"></span>'+
		  '<input class="inputtt col-xs-9 form-control" id="inputIcon_'+this.uid+'" type="'+tipo+'" value="'+valor+'">'+
		  '<span class="input-group-addon addon2 imgDown"></span>'+
		  '</div>'+
		  '</div>']);
}

InputDouble.prototype = Object.create(Controller.prototype);
InputDouble.prototype.constructor = InputDouble;

InputDouble.prototype.setIcon=function(psrc,posi){
	var posiI = posi || 1;
	this.htmlX.find('.addon'+posiI+' .icon'+posiI).remove();
	this.htmlX.find(".addon"+posiI).append('<span class="icon'+posiI+' glyphicon iconeinput glyphicon-'+psrc+'"></span>');
};
InputDouble.prototype.setAddonText=function(ptxt,posi){
	var posiI = posi || 1;
	this.htmlX.find(".addon"+posiI+" .icon"+posiI).remove();
	this.htmlX.find(".addon"+posiI).text(ptxt);
};
